package com.uyayo.framework.pagehelper;

import java.io.Serializable;
import java.util.Objects;

/**
 * 分页参数类
 * Created by hfj on 2017/11/24.
 */
public class PageOrderByCondition implements Serializable {
    private static final long serialVersionUID = 1L;
    private int offset;
    private int limit;
    private String orderBy;

    public PageOrderByCondition() {
    }

    public int getOffset() {
        return offset;
    }

    public void setOffset(int offset) {
        this.offset = offset;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public String getOrderBy() {
        return orderBy;
    }

    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }

    @Override
    public String toString() {
        return "PageOrderByCondition{" +
                "offset=" + offset +
                ", limit=" + limit +
                ", orderBy='" + orderBy + '\'' +
                '}';
    }
}
